package com.andrew.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.andrew.entity.Cart;
import com.andrew.entity.Customer;

public interface CustomerDao {
	
	public Customer findCustomer(String phone,String password) throws SQLException ;
	
	public int InsertCustomer(Connection conn,Customer customer)throws SQLException;
	
	public int InsertCart(Connection conn,Customer customer)throws SQLException;
	
	public Customer findCustomer(int customerId) throws SQLException ;
	
	public abstract List<Customer> findAllCustomer() throws SQLException;
	
	/**
	 * 获取全部普通用户
	 * @return
	 * @throws SQLException
	 */
	public abstract List<Customer> findAllCommonCustomer() throws SQLException;
}
